<?php
$type=$_POST['type'];
// 1 => Updatelocation
//2=> SignUp
//3=>UpdateProfile
//4=>GetPeople

include ('Services.php');
switch ($type)
{
    case 1:
        UpdateLocation($_POST['email'],$_POST['lat'],$_POST['long']);
        break;

     case 2:
        SignUp($_POST['email'],$_POST['name']);
        break;

    case 3:
        GetPeople($_POST['lat'],$_POST['long'],$_POST['radius']);
        break;
		
	case 4:
		GetAllPeople();
		break;
}

?>
